package com.mate.cloud.druid.model.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author cong zhi
 * @description
 * @email 448341911@qq.com
 * @date $ $
 * @version: v1.0
 */
@Data
@NoArgsConstructor
public class ConnectionResult {

    @JSONField(name = "ResultCode")
    private int ResultCode;

    @JSONField(name = "Content")
    private List<ContentBean> Content;

    @NoArgsConstructor
    @Data
    public static class ContentBean {

        @JSONField(name = "id")
        private int id;

        @JSONField(name = "connectionId")
        private int connectionId;

        @JSONField(name = "useCount")
        private int useCount;

        @JSONField(name = "lastActiveTime")
        private String lastActiveTime;

        @JSONField(name = "connectTime")
        private String connectTime;

        @JSONField(name = "holdability")
        private int holdability;

        @JSONField(name = "transactionIsolation")
        private int transactionIsolation;

        @JSONField(name = "autoCommit")
        private boolean autoCommit;

        @JSONField(name = "readoOnly")
        private boolean readoOnly;

        @JSONField(name = "keepAliveCheckCount")
        private int keepAliveCheckCount;

        @JSONField(name = "pscache")
        private List<?> pscache;

    }
}
